import {httpGet, httpPost, httpPut} from '@frontend/vue-common'
import {getCurrentGlobalProperties} from "@frontend/vue-common/src/app";

export const list$XXXXXX$API = (pageNum, pageSize, sortField, sortOrder, filter) => {
    return httpGet("/v1/$routerGroup$/$xxxxxx$", {
        pageNum: pageNum,
        pageSize: pageSize,
        sortField: sortField,
        sortOrder: sortOrder,
        $query_field_loop_area$
    })
}

export const add$XXXXXX$API = (data) => {
    return httpPut("/v1/$routerGroup$/$xxxxxx$", data)
}

export const get$XXXXXX$API = (data) => {
    return httpGet(`/v1/$routerGroup$/$xxxxxx$/${data.id}`, {})
}

export const edit$XXXXXX$API = (data) => {
    return httpPost(`/v1/$routerGroup$/$xxxxxx$/${data.id}`, data)
}

export const delete$XXXXXX$API = (ids) => {
    return httpPost(`/v1/$routerGroup$/batchDelete$XXXXXX$`, {
        ids: ids,
    })
}

